package org.example.domain.query.report;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.domain.query.PageQuery;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper=false)
@Data
@ApiModel(description = "进销存查询条件")
public class InOutStockReportQuery extends PageQuery {
    @ApiModelProperty("仓库ID")
    private List<Long> depotId;
    
    @ApiModelProperty("本月月初月份")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date createTime;
    
    @ApiModelProperty("本月月末月份")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;
    
    @ApiModelProperty("商品信息")
    private String name;
    
    @ApiModelProperty("商品类别ID")
    private Long categoryId;
    
    
}
